package lesson14;

public class PersonDemo {

	public static void main(String[] args) 
	{

		Person ivan = new Person();
		Person maria = new Person();

		ivan.name = "Ivan";
		ivan.age = 25;
		ivan.personalNumber = "8612025281";
		ivan.sex = 'M';
		ivan.weight = 80.5;
		
		maria.name = "Maria";
		maria.age = 21;
		maria.personalNumber = "8203301201";
		maria.sex = 'F';
		maria.weight = 55;
		
		System.out.println(ivan.name);
		System.out.println(ivan.age);
		System.out.println(ivan.personalNumber);
		System.out.println(ivan.sex);
		System.out.println(ivan.weight);
		
		//ivan = maria;
		//System.out.println(ivan.name);
		
		System.out.println("Ivan's health is " + ivan.healthStatus);
		System.out.println("Ivan's hunger is " + ivan.hungerStatus);
		
		ivan.eat(15);
		ivan.walk();
		
		System.out.println("Ivan's health is " + ivan.healthStatus);
		System.out.println("Ivan's hunger is " + ivan.hungerStatus);
		ivan.eat(15);
	}

}
